import '@/styles/root_variables.css'
import '@/styles/reset.css'
import { createApp } from 'vue'

import App from './App.vue'

// 本地SVG图标
import "virtual:svg-icons-register";

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {router} from '@/routes/routes_index'

import { pinia,setupStore } from './store/storeIndex';
//router 守卫
import "@/permission";


import elementPlusIconRegister from '@/icon/elementPlusIconRegister.ts'

// 国际化
import {setupI18n} from "@/lang/lang_index.ts";

const app=createApp(App);

app.use(ElementPlus);
app.use(router);

setupStore(app)
setupI18n(app)

// app.use(pinia);

//注册图标为该样式 el-icon-edit
app.use(elementPlusIconRegister)

// app.use(i18n);

app.mount('#app');